package com.ccf.business.etl.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccf.business.etl.model.vo.RuleSynonymVO;
import com.service.mybatis.pojo.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.beans.BeanUtils;

/**
 * 
 *
 * @author zhaoj
 * @date 2021-11-29 10:41:10
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("wj_rule_synonym")
@ApiModel(value="wj_rule_synonym对象", description="")
public class RuleSynonym extends SuperEntity {
    private static final long serialVersionUID=1L;

    public static String SUBJECT_HEADER_1 = "主词";
    public static String SUBJECT_HEADER_2 = "描述";
    public static String SUBJECT_HEADER_3 = "同义词(用英文逗号分隔,单个长度不能超过10)";


    @ApiModelProperty(value = "主词")
    @ExcelProperty(value = "主词")
    private String subject;

    public static final Character SEPARATOR = ',';
    @ApiModelProperty(value = "同义词 多个逗号分隔")
    @ExcelProperty(value = "同义词(用英文逗号分隔,单个长度不能超过10)")
    private String synonyms;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "创建人")
    private String creator;

    public RuleSynonymVO toVo(){
        RuleSynonymVO vo = new RuleSynonymVO();
        BeanUtils.copyProperties(this, vo);
        return vo;
    }
}
